package com.xca.is.service;

import com.xca.is.entity.TrainEntity;

import io.reactivex.rxjava3.core.Observable;
import retrofit2.http.GET;
import retrofit2.http.Query;

public interface TrainService {
    //https://api.yujn.cn/api/hc.php?type=json&go=%E5%90%89%E6%9E%97&to=%E8%8B%8F%E5%B7%9E&time=2024-11-09
    @GET("hc.php")
    Observable<TrainEntity> gatData(@Query("type") String type,
                                    @Query("go") String go,
                                    @Query("to") String to,
                                    @Query("time") String time);
}
